package com.future.client.consumer.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 测试接口
 *
 * @author chenli
 * @create 2018-05-21
 */
@FeignClient("eureka-client-provider")
public interface RemoteInterface {

    /**
     * 获取公司信息
     *
     * @param companyName :
     * @return :
     */
    @RequestMapping(value = "/getCompanyInfoByProvider", method = RequestMethod.GET)
    String getCompanyInfoByProvider(@RequestParam("companyName") String companyName);

}